package cn.edu.gduf.luowowo.ask.mapper;

import cn.edu.gduf.luowowo.ask.domain.Question;
import cn.edu.gduf.luowowo.common.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface QuestionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Question record);

    Question selectByPrimaryKey(Long id);

    List<Question> selectAll();

    int updateByPrimaryKey(Question record);

    void removeRelation(Long questionId);

    void insertTagRelation(@Param("questionId") Long questionId, @Param("tagId") Long tagId);

    List<Question> selectForList(QueryObject qo);

    void updateQuestionForStatis(Question question);
}